Vorlage:Comment: Unterschied zwischen den Versionen
Aus Haus Kormin
Luhan (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Luhan (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 36: | Zeile 36: | ||
</noinclude><includeonly><div style="display:none;"> | </noinclude><includeonly><div style="display:none;"> | ||
{{#vardefine:SOURCE|{{{SOURCE|{{PAGENAME}}}}}}} | |||
{{#vardefine:TARGET|{{{TARGET|{{PAGENAME}}}}}}} | |||
{{#vardefine:CONTENT|{{{CONTENT|dieser Kommentar hat noch keinen Inhalt}}}}} | |||
{{#vardefine:TITLE|{{{TITLE|}}}}} | |||
<div style="border-left:3px solid #cdcfff; background:ghostwhite; font-family: Tahoma; font-size:13pt; margin-left:15px; margin-right:15px; display:grid; grid-template-columns: 50px auto; grid-gap: 10px;"> | {{#cargo_store:_table=COMMENT | ||
|SOURCE={{#var:SOURCE}} | |||
|TARGET={{#var:TARGET}} | |||
|CONTENT={{#var:CONTENT}} | |||
|TITLE={{#var:TITLE}} | |||
}} | |||
</div><div style="border-left:3px solid #cdcfff; background:ghostwhite; font-family: Tahoma; font-size:13pt; margin-left:15px; margin-right:15px; display:grid; grid-template-columns: 50px auto; grid-gap: 10px;"> | |||
<div style="grid-column: 1 / span 1; grid-row: 1 / span 1; font-size:50pt;margin-left:10px;">❝</div> | <div style="grid-column: 1 / span 1; grid-row: 1 / span 1; font-size:50pt;margin-left:10px;">❝</div> | ||
<div style="grid-column: 2 / span 1; grid-row: 1 / span 1; margin-top:30px; margin-right:30px;">{{{CONTENT|}}}</div> | <div style="grid-column: 2 / span 1; grid-row: 1 / span 1; margin-top:30px; margin-right:30px;">{{{CONTENT|}}}</div> | ||
<div style="grid-column: 2 / span 1; grid-row: 2 / span 1;margin-bottom:15px; font-size:14pt;"><ul><li>{{#var:SOURCE}} über {{#var:TARGET}}</li></ul></div> | |||
</div> | </div> | ||
Version vom 9. Januar 2026, 16:52 Uhr
Version
Version 1.0
Purpose
The template "Comment" creates and stores any kind of opinion or idea from something/someone about something/someone. The information can be queried and used somewhere else.
A "comment" means here: Create some "content" and link it to a "source" and a "target". Source and Target may be anything: A person, a town, a guild, a concept like "Magie" or anything else someone could have an opinion to.
The usage of the template "comment" allow to reuse this content on different location: A person which makes a comment about a spell could embed this comment not only on his page, but also on the spells page. Or somewhere else.
Parameters
TARGET = <target> # the target of a comment, default: current page SOURCE = <source> # the source of a comment, default: current page CONTENT = <text> # the content of the coment
Examples
Format the comment just like the box.
Code:
{{Comment|TARGET=Hans Wurst|CONTENT=This is my comment}}
Result:
Hans Wurst
This is my comment