v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Wikisrc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(just use one <code> tag)
 
Line 1: Line 1:
<includeonly>{{#rreplace:{{{1}}}|(.)|<code>$1</code>}}</includeonly><noinclude>
+
<includeonly><code>{{#rreplace:{{{1}}}|(.)|<span>$1</span>}}</code></includeonly><noinclude>
 
This displays the generated wiki source code ''before rendering'' (for debugging complex templates)
 
This displays the generated wiki source code ''before rendering'' (for debugging complex templates)
 
==Examples==
 
==Examples==
Line 16: Line 16:
 
{{wikisrc|A {{wikisrc}} example}}
 
{{wikisrc|A {{wikisrc}} example}}
 
----
 
----
Another, more complex example (note that each character in the &lt;code> tags is surrounded by a &lt;code> tag)
+
Another, more complex example (note that each character in the &lt;code> tags is surrounded by a &lt;span> tag)
 
<pre>{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}</pre>
 
<pre>{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}</pre>
 
{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}
 
{{wikisrc|A {{wikisrc|An inner {{wikisrc}} inclusion}} example}}
  
 
</noinclude>
 
</noinclude>

Latest revision as of 02:49, 10 June 2019