Difference between revisions of "Template:dwb relation"

From Diversity Workbench
Jump to: navigation, search
(Created page with "<includeonly>{{#if:{{{referred|}}}| '''Referred: ''' [[{{{referred}}}]] }}{{#if:{{{update|}}}| <br /> '''Update rule: ''' {{{update}}} }}{{#if:{{{delete|}}}| <br /> '''Delete...")
 
m (Tip: generalized template programming examples via {{PAGENAME}}. Underscored template name would work as well, but a little confusing unusual, when it is not necessary.)
 
Line 12: Line 12:
 
For example:
 
For example:
  
<code>
+
  <nowiki>{{</nowiki>{{PAGENAME}}<!--
  <nowiki>{{dwb_relation</nowiki>
+
    Or {{PAGENAMEE}} gives underscore.
 +
    Tip: generalized template programming via {{PAGENAME}} can give always correct examples.  -->
 
   |referred=dwbDescriptions:Descriptor.id
 
   |referred=dwbDescriptions:Descriptor.id
 
   |update=NO ACTION
 
   |update=NO ACTION
 
   |delete=NO ACTION
 
   |delete=NO ACTION
 
  }}
 
  }}
</code>
 
  
produces
+
produces:
  
{{dwb_relation
+
{{ {{PAGENAME}}
 
|referred=dwbDescriptions:Descriptor.id
 
|referred=dwbDescriptions:Descriptor.id
 
|update=NO ACTION
 
|update=NO ACTION

Latest revision as of 11:04, 22 September 2016

A template to structurally save information about relations between Diversity Workbench concepts which might later be converted into other (semantic) templates.

For example:

{{dwb relation
 |referred=dwbDescriptions:Descriptor.id
 |update=NO ACTION
 |delete=NO ACTION
}}

produces:

Referred: dwbDescriptions:Descriptor.id
Update rule: NO ACTION
Delete rule: NO ACTION