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:Tagvalue"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Reverted edits by Quietust (Talk) to last revision by VengefulDonut)
(subst doesn't actually work with this)
Line 1: Line 1:
<includeonly>{{{{{subst|}}}#rmatch:{{{1}}}|\[{{{2}}}:([^\]]*)\]|\1|{{{notfound|not found}}}}}</includeonly><noinclude>
+
<includeonly>{{#df_tagvalue:{{{1}}}|{{{2}}}|{{{notfound|not found}}}}}</includeonly><noinclude>
 
Usage: <nowiki>{{ tagvalue | raw entry | tag name }}</nowiki>
 
Usage: <nowiki>{{ tagvalue | raw entry | tag name }}</nowiki>
  
 
Returns: value associated to that tag. uses the first tag encountered.
 
Returns: value associated to that tag. uses the first tag encountered.
 
Subst usage: <nowiki>{{ subst:tagvalue | raw entry | tag name | subst=subst:}}</nowiki>
 
  
 
[[category:raw templates]]
 
[[category:raw templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:55, 1 April 2011

Usage: {{ tagvalue | raw entry | tag name }}

Returns: value associated to that tag. uses the first tag encountered.