Difference between revisions of "Template:Database Table Footer"

From Dreamwidth Notes
Jump to: navigation, search
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{norels}}} | 1 | | = Relationships =
+
<includeonly>{{#if: {{{norels|}}}{{{removed|}}} | | = Relationships =
 
{{#ask:[[Kind::Database Relationship]][[From page::{{PAGENAME}}]]
 
{{#ask:[[Kind::Database Relationship]][[From page::{{PAGENAME}}]]
 
|mainlabel=-
 
|mainlabel=-
Line 6: Line 6:
 
|? To field
 
|? To field
 
|? Relationship type
 
|? Relationship type
 +
|? To page
 
|link=none
 
|link=none
 
|sort = From field
 
|sort = From field
Line 12: Line 13:
 
|template=Database Table Relationship
 
|template=Database Table Relationship
 
|intro=<h2>Outgoing</h2>
 
|intro=<h2>Outgoing</h2>
|default=[[Category:Database Table Needing Relationship Data|{{{2}}}]]
+
|default={{#if: {{{no_out_rels|}}} | | [[Category:Database Table Needing Relationship Data]]}}
 
}}
 
}}
 
{{#ask:[[Kind::Database Relationship]][[To page::{{PAGENAME}}]]
 
{{#ask:[[Kind::Database Relationship]][[To page::{{PAGENAME}}]]
Line 27: Line 28:
 
|intro=<h2>Incoming</h2>
 
|intro=<h2>Incoming</h2>
 
|userparam=from
 
|userparam=from
}}}}</includeonly>
+
}}}}</includeonly><noinclude>
 +
Print out a footer for database tables.
 +
Takes one option, norels, if specified and non-blank, the relationships (or the needs rel data category) will not be added.
 +
Removed acts like norels, also accepts "no_out_rels", To Flag that there are no outgoing relations, to not add this to the category.
 +
</noinclude>

Latest revision as of 15:34, 3 February 2010

Print out a footer for database tables. Takes one option, norels, if specified and non-blank, the relationships (or the needs rel data category) will not be added. Removed acts like norels, also accepts "no_out_rels", To Flag that there are no outgoing relations, to not add this to the category.