Open
Conversation
Add mediawiki-like parameter support
Fix escaping "&" symbol
Add alias flag to 'parameters'
Add missing parameters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #267
Add mediawiki-like parameter support. Since original branch("template" branch) is far behind from present, I just implemented template functionality myself.
Added "{{{name}}}" syntax as placeholders. This syntax will be hidden on render.
Example:
{{{1}}},{{{2}}},{{{some_name}}}Parameter syntax is like this:
{{page>pagename#section¶meters=param1|param2|param3...}}{{page>pagename#section¶meters=name1=param1|name2=param2|name3=param3...}}Wiki syntax can be used as parameter value.
vertical bar can be escaped with backslash. like this:
{{page>pagename?parameters=value\|with\|vertical bar|this is value 2}}Which resolves to:
{{{1}}} -> value|with|vertical bar
{{{2}}} -> this is value 2
When name is not provided, they will be automatically resolved as integer names - 1, 2, 3, so on.
Wiki syntax can be used with parameter.
{{page>pagename?parameters=[[link\|some link]]}}Which resolves to:
{{{1}}} -> [[link|some link]] (Rendered as internal wiki link)