User:DonRedman/TestStatusCard: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(inofficial version (Imported from MoinMoin))
m (3 revision(s))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
=Test of Automated Status Card=

I try to develop a status card for [[WikiDocs]]. The idea is that an official version of a [[Style Guideline|StyleGuideline]] can be transcluded to [[WikiDocs]] while people work on a revised version in the wiki. One and the same macro should automagically show the correct status message and link to the respective other page.

==How does it work?==

Currently it works with the <code><nowiki>Include</nowiki></code> macro only, since ´Card´ is not yet supported by [[WikiDocs]].

This page has three revisions:
# The revision that shows the Status for the official [[WikiDocs Page|WikiDocsPage]]. This is currently [http://wiki.musicbrainz.org/DonRedman/TestStatusCard?action=recall&rev=1 #1]
# The revision that shows the Status for the inofficial wiki page. This should always be the current revision. However, currently this is [http://wiki.musicbrainz.org/DonRedman/TestStatusCard?action=recall&rev=2 #2], because there is
# the revision that explains it all. This one. :-)

Now the [[Transclusion Table|TransclusionTable]] should transclude #1 to [[WikiDocs]]. Therefore if you put <pre>[[Include(TestStatusCard)]]
</pre>

On a page it will show #1 in [[WikiDocs]] and the current revision in the wiki. Which is exactly what we want.

===And with CardMacro?===

With Card macro we could add variables, which would mean that we would not need a single page for each guideline.

==Wording of the messages==

Please help improve the wording and layout of the messages:
<ul><li style="list-style-type:none">''Is it "in" or "on" the wiki?''
</ul>
{| border="1"
|-
| {i} This is the official Version of the XY [[Style Guideline|StyleGuideline]].<br/>A new version of the guideline is currently developed [http://wiki.musicbrainz.org/DonRedman/TestStatusCard on the Wiki]
|}
{| border="1"
{| border="1"
|-
|-

Latest revision as of 08:29, 15 March 2009

Test of Automated Status Card

I try to develop a status card for WikiDocs. The idea is that an official version of a StyleGuideline can be transcluded to WikiDocs while people work on a revised version in the wiki. One and the same macro should automagically show the correct status message and link to the respective other page.

How does it work?

Currently it works with the Include macro only, since ´Card´ is not yet supported by WikiDocs.

This page has three revisions:

  1. The revision that shows the Status for the official WikiDocsPage. This is currently #1
  2. The revision that shows the Status for the inofficial wiki page. This should always be the current revision. However, currently this is #2, because there is
  3. the revision that explains it all. This one. :-)

Now the TransclusionTable should transclude #1 to WikiDocs. Therefore if you put

[[Include(TestStatusCard)]] 

On a page it will show #1 in WikiDocs and the current revision in the wiki. Which is exactly what we want.

And with CardMacro?

With Card macro we could add variables, which would mean that we would not need a single page for each guideline.

Wording of the messages

Please help improve the wording and layout of the messages:

  • Is it "in" or "on" the wiki?
{i} This is the official Version of the XY StyleGuideline.
A new version of the guideline is currently developed on the Wiki
Alert.png This is a development Version of the XY StyleGuideline which is developed on the wiki.
The official version of the guideline, which is currently in use, can be found on http://musicbrainz.org/docs/TestStatusCard