Template:TAS: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
m (more testing)
m (more testing)
Line 1: Line 1:
<onlyinclude>{{zs}}<section begin={{{1|}}} /></onlyinclude>
{{zs}}<section begin={{{1|}}} />

<noinclude>


To be used to mark a document section for transclusion elsewhere to limit duplication and '''ease editing'''. Example:
To be used to mark a document section for transclusion elsewhere to limit duplication and '''ease editing'''. Example:
Line 22: Line 24:
</pre>
</pre>
</pre>
</pre>
</noinclude>

Revision as of 13:34, 29 March 2015

in

Simple constant template that renders 'in' when called, nothing more.


To be used to mark a document section for transclusion elsewhere to limit duplication and ease editing. Example:

{{TAS|Section1}} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. {{TAE|Section1}}Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

In this case, the

{{TAS|text}}

template and its corresponding Transinclusion Anchor End

{{TAE|text}}

template create an html anchor such that the text can be pulled into other pages (transcluded) rather than just linked to (translinked). The above, if transcluded to a page this way

A normal page with a ton of text, and then:

 {{:PAGENAME:#Section1}}

and then more text 

would then render as:

 A normal page with a ton of text, and then:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 
and then more text