Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Wikimedia-style templates #44

Open
ozxybox opened this issue Sep 25, 2023 · 0 comments
Open

Add Wikimedia-style templates #44

ozxybox opened this issue Sep 25, 2023 · 0 comments

Comments

@ozxybox
Copy link
Member

ozxybox commented Sep 25, 2023

It would be fantastic if we could get Wikimedia-style templates.

We should be able to make a HTML template in the Wiki repo, store it under templates/ or something like that, and then refer to it from the markdown.

An example from Wikipedia would be their "under construction" banner to tell users that a page is a work in progress.
For us, we would put an HTML file with the banner into templates/UnderConstruction.html. Then from a markdown file, writing {{UnderConstruction}} should substitute the tag with the contents of the HTML file.

Reference pages
https://en.wikipedia.org/wiki/Help:Template
https://commons.wikimedia.org/wiki/Commons:Templates
https://gohugo.io/templates/introduction/

Note: should we reuse the existing template substitution syntax for this? https://github.com/StrataSource/strata-wiki/blob/5cda791c8446246a985567609256eba14235b482/src/exporter/template.ts#L49C1-L53C10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant