Editing
Template:Infobox trail/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Embed inside another infobox == The trail infobox can be embedded inside another infobox for seamless display of info. For example, a trail that is also a protected area, such as the [[Kal-Haven Trail]]. See the [[Template:Infobox trail/testcases|testcases]] for more examples. === Inserting the trail infobox inside the parent infobox === The trail infobox can only be inserted after certain field values of the parent template. Specifically, only after fields whose values are not passed to another template by the parent templates source code. In other words, the parent templates source code for the field has to output the fields' value without passing it to a template. This may require examining the parent templates source code. It is ok to insert after field values that contain internal <code>[[]]</code> and external links <code>[]</code>.<br /> Example: <pre> {| style="float:right; clear:right; border:0; margin:-0.5em 0 0 0;" |- |{{Infobox protected area | name = Kal-Haven Trail ... | governing_body = <div>[[Michigan Department of Natural Resources]]</div> {{Infobox trail | embed = yes | cellstyle = padding:0.1em 0.3em; | name = Kal-Haven Trail | length = {{convert|34.5|mi|km|1}} ... }} }} |} </pre> Note the <div> tag surrounding the governing_body wiki link. It is needed to reduce the vertical spacing between the governing_body field and the first hiking trail field, in this case, length. === Parent infobox encapsulation === The parent infobox needs to be encapsulated in a table as in the above example. <pre><nowiki> {| style="float:right; clear:right; border:0; margin:-0.5em 0 0 0;" |- |(parent infobox) |} </nowiki></pre>
Edit summary
(Briefly describe your changes)
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A2wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Current events
Random page
About A2wiki
interaction
Help
Community portal
Recent changes
Upload file
Tools
What links here
Related changes
Special pages
Page information